package com.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.entity.Menus;
import com.edu.entity.StuScore;
import com.edu.entity.Users;
import com.edu.vo.Result;
import com.edu.vo.StuScoreVo;
import com.edu.vo.UserVo;
import com.edu.vo.UsersLoginVo;

import java.util.List;

public interface UsersService extends IService<Users> {
    /**
     * 登录
     * @param usersLoginVo
     * @return
     */
    Result login(UsersLoginVo usersLoginVo);

    /**
     * 注册
     * @param user
     * @return
     */
    Result register(Users user);

    /**
     * 查询权限列表
     * */
    List<Menus> queryMenuList(Integer id);

    Result get(Long userId);

    Result addScore(StuScore stuScore);

    Result deleteStuScore(Long id);

    Result selectScore(StuScoreVo stuScore);

    UserVo getUserInfo(Long id);
}
